﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TraceabilityApp_Domain
{
    public class TraceabilityModel:BaseEntity
    {
        /// <summary>
        /// 溯源管理基本(主键标识)
        /// </summary>
        [Key]
        public int TraceabilityId {  get; set; }
        /// <summary>
        /// 商品Id(外键)
        /// </summary>
        public int GoodsId {  get; set; }
        /// <summary>
        /// 生产批次(整个系统唯一)
        /// </summary>
        public string Batch {  get; set; }
        /// <summary>
        /// 保质期(天)
        /// </summary>
        public int Shelf {  get; set; }
        /// <summary>
        /// 生产许可证(整系统唯一)
        /// </summary>
        public string License {  get; set; }
        /// <summary>
        /// 生产企业
        /// </summary>
        public string Enterprise { get; set; }
        /// <summary>
        /// 信息完善度
        /// </summary>
        public int Completeness {  get; set; }
        /// <summary>
        /// 封面图
        /// </summary>
        public string? Cover {  get; set; }

    }
}
